<template>
	<view>
		<z-page title="鎴戠殑鍒楄〃" :list="list"></z-page>
		<drag-button :isDock="true" :navHeight="Number(navHeight) + statusBarHeight" :text="'添加'" />
	</view>
</template>

<script>
let systemInfo = uni.getSystemInfoSync();
import dragButton from '@/components/drag-button/drag-button.vue';
export default {
	components: {
		dragButton
	},
	data() {
		return {
			statusBarHeight: systemInfo.statusBarHeight, //状态栏高度
			navHeight: '', //导航栏高度
			list: []
		};
	},
	onLoad() {
		this.navbarHeight();
	},
	methods: {
		// 转换字符数值为真正的数值
		navbarHeight() {
			let height = '';
			// #ifdef APP-PLUS || H5
			height = 44;
			// #endif
			// #ifdef MP
			height = systemInfo.platform == 'ios' ? 44 : 48;
			// #endif
			this.navHeight = height;
		}
	}
};
</script>

<style lang="scss"></style>
